package org.jeecg.modules.business.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.business.entity.BusMarketCoupons;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;

/**
 * @Description: bus_market_coupons_info
 * @Author: jeecg-boot
 * @Date:   2023-03-03
 * @Version: V1.0
 */
public interface IBusMarketCouponsService extends IService<BusMarketCoupons> {

    /**
     * 删除活动及其优惠券记录
     * @param id
     * @return
     */
    public Result removeCouponsAndCouponsUsedById(String id);

    public Page<BusMarketCoupons> pageList(Page<BusMarketCoupons> page, @Param("busMarketCoupons") BusMarketCoupons model);
}
